diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-06-24 20:43:59 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-06-24 20:43:59 +0100 |
| commit | 41d4ba7f621b613a8c332addf2bd54f2c78e2d72 (patch) | |
| tree | bb16976ff8557f5949076fae2c01fe53bf35de6e /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithFunctions(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | 7880da50fa71d100d0052530a8baa937fa2f3197 (diff) | |
WASM binary format: support functions
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithFunctions(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 25 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithFunctions(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithFunctions(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..b4fc2e46 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithFunctions(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,25 @@ + +module.wasm: file format wasm 0x1 + +Section Details: + +Type[2]: + - type[0] () -> i32 + - type[1] () -> i64 +Function[2]: + - func[0] sig=0 + - func[1] sig=1 +Code[2]: + - func[0] size=8 + - func[1] size=4 + +Code Disassembly: + +00002c func[0]: + 00002d: 01 7d | local[0] type=f32 + 00002f: 01 7c | local[1] type=f64 + 000031: 41 00 | i32.const 0 + 000033: 0b | end +000039 func[1]: + 00003a: 42 00 | i64.const 0 + 00003c: 0b | end
\ No newline at end of file |
